package com.hspedu.homework.homework05;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/24
 * @time 19:18
 */
public class Scientist extends Employee {
    public Scientist(double sal, double bonus) {
        super(sal);
        this.bonus = bonus;
    }

    private double bonus;

    @Override
    public double getSal() {
        return super.getSal() + this.bonus;
    }
}
